$(function(){
	$("#leaseDatagrid").datagrid({
	    toolbar:'#leaseTolbar',
	});
	var myChart = echarts.init(document.getElementById('main'));
	option = {
		    title: {
		        text: '归还信息统计图'
		    },
		    tooltip: {
		        trigger: 'axis'
		    },
		    toolbox: {
		        show: true,
		        feature: {
		        	dataView : {show: true, readOnly: false},
		            magicType: {type: ['line', 'bar']},
		            restore: {},
		            saveAsImage: {}
		        }
		    },
		    xAxis:  {
		    	name:'分类',
		        type: 'category',
		        boundaryGap: false,
		        data : ['裙子', '裤子', '上衣', '帽子', '鞋子', '套装', '道具']
		    },
		    yAxis: {
		    	name:'数量',
		        type: 'value'
		    },
		    series: [
		        {
		            name:'直接访问',
		            type:'line',
		            data:[11, 11, 15, 13, 12, 13, 10],
		            markPoint: {
		                data: [
		                    {type: 'max', name: '最大值'},
		                    {type: 'min', name: '最小值'}
		                ]
		            }
		        },
		    ]
		};

	myChart.setOption(option);
})